onSnapToItem

open fun onSnapToItem(inputDeviceId: Int, source: Int, axis: Int)(source)

Call this when the view has snapped to an item.

Parameters

inputDeviceId

the ID of the InputDevice that generated the motion triggering the snap.

source

the input source of the motion causing the snap.

axis

the axis of event that caused the item to snap.